<?php
namespace common\models\admin;

use common\models\Common;

/**
 * Created by PhpStorm.
 * User: songnaize
 * Date: 2020/7/23
 * Time: 4:12 PM
 */
class Admin extends Common
{
    public static function tableName()
    {
        return '{{%admin_info}}';
    }

    public function getRole() {
        return $this->hasOne(AdminRole::className(), ['id' => 'role_type']);
    }
}